//
//  AppDelegate.swift
//  Example
//
//  Created by XX on 2023/11/30.
//

import UIKit
import FastSwiftSDK
import IQKeyboardManagerSwift

@main
class AppDelegate: UIResponder, UIApplicationDelegate {

    var window:UIWindow?
    
    func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
        
        let rootVC = TestHomeViewController()
        
//        let rootVC = MainViewViewController()

        let nav = UINavigationController.init(rootViewController: rootVC)
        window?.rootViewController = nav
        window?.makeKeyAndVisible()
        
        XXMQTT.shared.content(host: "8.137.99.64", username: "zhaonx", password: "Zhaonx123..",topics:nil)
        FastLog.shared.level = .DEBUG
        
        IQKeyboardManager.shared.isEnabled = true
        IQKeyboardManager.shared.resignOnTouchOutside = true
        IQKeyboardManager.shared.shouldGroupAccessibilityChildren = true
        IQKeyboardManager.shared.enableAutoToolbar = true
        
        return true
    }
}

